package com.dkm.ec.relation.persistence.entity;
import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.dkm.base.api.annotion.IField;
import com.dkm.base.api.annotion.ITable;
import com.dkm.base.db.persistence.entity.AbstractPo;

/**
 * 对象功能:t_relation_session Tbl对象
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-07-22 16:33:03
 */
 @ITable(name="relationSession",code="t_relation_session")
public class RelationSessionTbl extends AbstractPo<String>{
	@IField(name="id",column="id_")
	protected String  id; 		/*主键*/
	@IField(name="partyId",column="party_id_")
	protected String  partyId; 		/*会员*/
	@IField(name="type",column="type_")
	protected String  type; 		/*类型。单聊=single_chat，群聊=group_chat，系统消息=system_msg，群发=group_send，资金变动=capital_changes，动态消息=dynamic_news*/
	@IField(name="entityId",column="entity_id_")
	protected String  entityId; 		/*关联实体*/
	@IField(name="createTime",column="create_time_")
	protected java.util.Date  createTime; 		/*创建时间*/
	
	
	public void setId(String id) 
	{
		this.id = id;
	}
	/**
	 * 返回 主键
	 * @return
	 */
	public String getId() 
	{
		return this.id;
	}
	public void setPartyId(String partyId) 
	{
		this.partyId = partyId;
	}
	/**
	 * 返回 会员
	 * @return
	 */
	public String getPartyId() 
	{
		return this.partyId;
	}
	public void setType(String type) 
	{
		this.type = type;
	}
	/**
	 * 返回 类型。单聊=single_chat，群聊=group_chat，系统消息=system_msg，群发=group_send，资金变动=capital_changes，动态消息=dynamic_news
	 * @return
	 */
	public String getType() 
	{
		return this.type;
	}
	public void setEntityId(String entityId) 
	{
		this.entityId = entityId;
	}
	/**
	 * 返回 关联实体
	 * @return
	 */
	public String getEntityId() 
	{
		return this.entityId;
	}
	public void setCreateTime(java.util.Date createTime) 
	{
		this.createTime = createTime;
	}
	/**
	 * 返回 创建时间
	 * @return
	 */
	public java.util.Date getCreateTime() 
	{
		return this.createTime;
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() 
	{
		return new ToStringBuilder(this)
		.append("id", this.id) 
		.append("partyId", this.partyId) 
		.append("type", this.type) 
		.append("entityId", this.entityId) 
		.append("createTime", this.createTime) 
		.toString();
	}
}